package org.mspring.platform.counter.dao;

import java.io.IOException;
import java.util.List;

import org.mspring.platform.counter.entity.Count;
import org.mspring.platform.dao.hibernate.IGenericDao;

/**
 * 
 * @since 2014年4月25日
 * @author Gao Youbo
 */
public interface CountDao extends IGenericDao<Count, Long> {

    public void initTable() throws IOException;

    public Count findByDayAndCountKey(int day, String countKey);

    public List<Count> listByDay(int day);

    public Count findByCountKey(String countKey);

    public long sumByCountKey(String countKey);
}
